<html>
<head><meta charset="utf-8"><title>LLVM rebuild · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html">LLVM rebuild</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209316825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209316825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209316825">(Sep 07 2020 at 17:43)</a>:</h4>
<p>I just ran <code>./x.py build</code> and it's rebuilding LLVM! Why would that be? I'm pretty sure that it rebuilt about a month ago when we bumped to LLVM 11. Any ideas?</p>



<a name="209317395"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209317395" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209317395">(Sep 07 2020 at 17:55)</a>:</h4>
<p>did you change config.toml maybe?</p>



<a name="209318185"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209318185" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209318185">(Sep 07 2020 at 18:09)</a>:</h4>
<p>This is the diff between <code>config.toml.example</code> and my <code>config.toml</code>:</p>
<div class="codehilite"><pre><span></span><code><span class="gd">--- config.toml.example</span>
<span class="gi">+++ config.toml</span>
<span class="gu">@@ -49,8 +49,10 @@</span>
 # dynamic version to be available.
 #static-libstdcpp = false

<span class="gd">-# Whether to use Ninja to build LLVM. This runs much faster than make.</span>
<span class="gd">-#ninja = true</span>
<span class="gi">+# Tell the LLVM build system to use Ninja instead of the platform default for</span>
<span class="gi">+# the generated build system. This can sometimes be faster than make, for</span>
<span class="gi">+# example.</span>
<span class="gi">+ninja = false</span>

 # LLVM targets to build support for.
 # Note: this is NOT related to Rust compilation targets. However, as Rust is
<span class="gu">@@ -158,7 +160,7 @@</span>

 # Indicate whether the compiler should be documented in addition to the standard
 # library and facade crates.
<span class="gd">-#compiler-docs = false</span>
<span class="gi">+compiler-docs = true</span>

 # Indicate whether git submodules are managed and updated automatically.
 #submodules = true
<span class="gu">@@ -368,7 +370,7 @@</span>
 #backtrace = true

 # Whether to always use incremental compilation when building rustc
<span class="gd">-#incremental = false</span>
<span class="gi">+incremental = true</span>

 # Build a multi-threaded rustc
 #parallel-compiler = false
</code></pre></div>



<a name="209318254"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209318254" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209318254">(Sep 07 2020 at 18:10)</a>:</h4>
<p><code>ninja = false</code> would have caused a recompile</p>



<a name="209318258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209318258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209318258">(Sep 07 2020 at 18:10)</a>:</h4>
<p>since the default recently switched</p>



<a name="209318261"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209318261" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209318261">(Sep 07 2020 at 18:10)</a>:</h4>
<p>seems like bootstrap should be smarter than that though :/</p>



<a name="209318264"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209318264" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209318264">(Sep 07 2020 at 18:10)</a>:</h4>
<p>Oh that's unfortunate <span aria-label="slight frown" class="emoji emoji-1f641" role="img" title="slight frown">:slight_frown:</span></p>



<a name="209318280"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209318280" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209318280">(Sep 07 2020 at 18:11)</a>:</h4>
<p>Well, I guess I'll wait for it to finish!</p>



<a name="209318919"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209318919" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209318919">(Sep 07 2020 at 18:24)</a>:</h4>
<p>there's work going on to make it downloadable: <a href="https://github.com/rust-lang/rust/pull/76332">https://github.com/rust-lang/rust/pull/76332</a></p>



<a name="209319492"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209319492" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209319492">(Sep 07 2020 at 18:33)</a>:</h4>
<p>There was an update to the LLVM submodule -- that will trigger a rebuild</p>



<a name="209319852"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209319852" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209319852">(Sep 07 2020 at 18:36)</a>:</h4>
<p><span class="user-mention" data-user-id="307537">@Camelid</span> Out of curiosity, why does ninja not work for you?</p>



<a name="209321761"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20rebuild/near/209321761" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20rebuild.html#209321761">(Sep 07 2020 at 19:09)</a>:</h4>
<p><span class="user-mention" data-user-id="239881">@Josh Triplett</span> I just haven't installed it and I'm not building LLVM that often so it's not a big deal to use <code>make</code>.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>